package com.express.ExpPercentage.service;


import com.express.ExpPercentage.bean.ExpPercentage;
import com.express.ExpPercentage.dao.ExpPercentageDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service("ExpPercentage")
public class ExpPercentageManager {

    @Autowired
    ExpPercentageDao expPercentageDao;

    //获取快递业务提成比例表
    public ExpPercentage getExpPercentage(){
      return  expPercentageDao.getAll().get(0);
    }

    public ExpPercentage get(String id){
        return  expPercentageDao.get(id);
    }

    public void save(ExpPercentage expPercentage) {
        expPercentageDao.save(expPercentage);
    }
}
